<?php
include_once($_SERVER['DOCUMENT_ROOT'].'/includes/config.inc.php');
include_once("config.php");
getConfig();
checkActiveLogin();
getUserInfo();

$sql = "INSERT INTO `tbChristmas` VALUES(:type, :x, :y, :user)";
db::Query($sql, array(':type'=>$_GET['type'], ':x'=>$_GET['x'], ':y'=>$_GET['y'], ':user'=>$USER['sUname']));
sendEmail('kpeterson5@edison.edu', 'User Picked For Tree', 'User Selected: '.$USER['sUname']);
?>